<template>
  <div>
    <a-card :title="t['多设备联屏']">
      <a-form :model="{}" :layout="'inline'">
        <a-form-item :label="t['搜索']">
          <a-input-search class="w-[200px]" v-model="props.query.name" allow-clear></a-input-search>
        </a-form-item>
      </a-form>
      <div>
        <a-button type="primary" @click="emit('create')">{{ t["新建"] }}</a-button>
        <a-button @click="emit('refresh')">{{ t["刷新"] }}</a-button>
      </div>
    </a-card>
  </div>
</template>

<script setup lang="ts">
import { Cross } from "@/api/service/lcd-device/cross";
import { IQuery, TableConfig } from "@/interface/IAxios";

const t = translate("公共模块");

const emit = defineEmits(["create", "refresh"]);

const props = defineProps<{
  query: IQuery;
  table: TableConfig<Cross>;
}>();
</script>

<style lang="scss" scoped></style>
